package pruebascroll;


import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author tekoraik
 */
public class Diccionario {
    String[] palabras = {"a","b","c","d","f","g","h","i","b","c","d","f","g","h","i","b","c","d","f","g","h","i","b","c","d","f","g","h","i","b","c","d","f","g","h","i","b","c","d","f","g","h","i","b","c","d","f","g","h","i","b","c","d","f","g","h","i","b","c","d","f","g","h","i","fin"};
    
    public Diccionario(){
    
    }
    
    public int getNumRows(){
        return palabras.length;
    }
    public String[] getRows(int i, int k){
        int ii=i;
        ArrayList<String> r = new ArrayList<String>();
        while (i<palabras.length && ii<(i+k)){
            r.add(palabras[ii]);
            ii++;
        }
        return r.toArray(new String [0]);
    }
}
